﻿<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/temp.css")" rel="stylesheet" type="text/css" />
    <link href="@Url.Content("~/Content/css/start/jquery-ui-1.8.16.custom.css")" rel="stylesheet" type="text/css" />

    
    <script src="@Url.Content("~/Content/js/jquery-1.6.2.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Content/js/jquery-ui-1.8.16.custom.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/pmexpress.js")" type="text/javascript"></script>
    <link type="text/css" href="@Url.Content("~/Content/menu/menu.css")" rel="stylesheet" />
    <link type="text/css" href="@Url.Content("~/Content/datatable/media/css/demo_table_jui.css")" rel="stylesheet" />
    <script type="text/javascript" src="@Url.Content("~/Content/menu/menu.js")"></script>
    <script type="text/javascript" src="@Url.Content("~/Content/datatable/media/js/jquery.dataTables.js")"></script>
    
</head>
<body>
    <div id="main">
        <div id="banner" ></div>
            <div id="menu" style="height:35px" class="ui-widget-header">
            @if(User.IsInRole("Student"))
            {
                Html.RenderPartial("StudentMenu");
            }
                else if(User.IsInRole("Checker"))
            {
                Html.RenderPartial("CheckerMenu");
                }
                else if(User.IsInRole("Approver"))
            {
                Html.RenderPartial("ApproverMenu");
                }
                else if(User.IsInRole("Admin"))
            {
                Html.RenderPartial("AdminMenu");
                }
                else if(User.IsInRole("Judge"))
            {
                Html.RenderPartial("JudgeMenu");
                }
                
            </div>
            <div id="header">
            @{if (HttpContext.Current.User.Identity.IsAuthenticated)
              {
                  
                  <div class="ui-widget fl" style="width:300px">
                  <div class="ui-state-highlight ui-corner-all" style="padding:6px;">
                    Xin chào, <strong>@HttpContext.Current.User.Identity.Name </strong> !
                  </div>
                  
                  </div>
            
                  <div class="buttonset fr">
                  @Html.ActionLink("Đăng xuất", "LogOff", "Security")
                  @Html.ActionLink("Đổi mật khẩu", "ChangePassword", "Security")
                  </div>
                  <div class="ui-widget fr ui-corner-all" style="margin-left:6px;">
                    <a href='@Url.Action("List","Notification")'>Bạn có @{Html.RenderAction("getNotificationNumber", "Notification");} thông báo</a>
                  </div>
                  <div class="clear"></div>
              }
              else
              {
                  <div class="ui-widget fl" style="width:600px">
                  <div class="ui-state-highlight ui-corner-all" style="padding:6px;">
                    Bạn chưa đăng nhập
                  </div>
                  </div>

                  <div class="buttonset fr">
                  @Html.ActionLink("Đăng nhập", "LogOn", "Security")
                  </div>
                  <div class="clear"></div>
                  
              }
            }
        </div>
        <div id="content" class="ui-widget">
            @RenderBody()
        </div>

        <div id="footer">PMExpress.net Copyright &copy; 2010</div>

    </div>

    <script type="text/javascript">
        $(function () {
            $(".dtpick").datepicker({
                changeMonth: true,
                changeYear: true
            });
            $('input[type="text"]').addClass("ui-widget-content ui-corner-all inputtext");
            $('input[type="password"]').addClass("ui-widget-content ui-corner-all inputtext");
            $('select').addClass("ui-widget-content ui-corner-all inputtext")
            $('textarea').addClass("ui-widget-content ui-corner-all inputtext");
        });
    
	</script>
</body>
</html>
